<?php get_header(); ?>

<div class="cols">
    <div class="col_2-3 cont_holder">
<?php if( have_posts() ): ?>

	<?php while( have_posts() ): the_post(); ?>
		<?php get_template_part('content', get_post_format()); ?>
	<?php endwhile; ?>
	<?php 
	if( function_exists('wp_pagenavi') ) {
		wp_pagenavi( '<div class="paginator inblog">', '</div>', 'pages');
	}else {
		$args = array(
            'before'        => '<div class="paginator inblog"><div class="pages">',
            'after'         => '</div></div>',
            'pagelink'      => '<span>%</span>'
        );
        wp_link_pages( $args );
	}
	?>
    
<?php else:?>

	<p><?php _e( 'Sorry, but page is empty.', LANGUAGE_ZONE ); ?></p>
	
<?php endif; ?>
    </div>
    
    <?php get_sidebar(); ?>

</div>

<?php get_footer(); ?>